package com.maslyk.invitation.enums;

public enum ViewIdentityEnum
{
    LOGIN_PAGE          ("login_page", "Logowanie do systemu"),
    SALESMAN_FORM       ("salesman_form", "Edycja sprzedawcy"),
    SALESMAN_LIST       ("salesman_list", "Lista sprzedawcow"),
    TEXT_FORM           ("text_form", "Edycja tekstu"),
    TEXT_LIST           ("text_list", "Lista tekstow"),
    ORDER_LIST          ("order_list", "Lista zamowien"),
    ORDER_FORM          ("order_form", "Edycja zamowienia"),
    ORDER_PREVIEW       ("order_preview", "Podglad zamowienia"),
    ORDER_SEARCH_FORM   ("order_search_form", ""),
    INVITATION_FORM     ("invitation_form", "Edycja zaproszenia"),
    ATTACHMENT_UPLOAD   ("attachment_upload", ""),
    VIGNETTE_FORM       ("vignette_form", "Edycja winietki"),
    INSERTION_FORM      ("insertion_form", "Edycja wkladki"),
    COMMENT_LIST        ("comment_list", "Lista komentarzy"),
    PRODUCT_FORM        ("product_form", "Edycja artykulu"),
    GLOBAL_MESSAGE_FORM ("global_message_form", ""),
    PRICE_PARAMETERS 	("commission_list", "Edycja prowizji"),
    SALESMAN_ACTIVITY 	("salesman_activity", "Historia zmian"),
    ERROR_PAGE          ("error_page", "Blad programu");

    private String pageName;
    private String pageTitle;

    private ViewIdentityEnum(String pageName, String pageTitle)
    {
        this.pageName = pageName;
        this.pageTitle = pageTitle;
    }

    @Override
    public String toString()
    {
        return pageName;
    }
    
    public String getPageTitle()
    {
    	return pageTitle;
    }
}
